package com.zbs.framework.start.listener;

import org.springframework.stereotype.Component;

@Component
public class TsetConService {

//    @EventListener(OptionEvent.class)
//    public void optionEvent(OptionEvent optionEvent) {
//        System.out.println(optionEvent.getSchemaName());
//        System.out.println(optionEvent.getTableName());
//        optionEvent.getRowData().getRowDatasList().forEach(rowData -> printColumn(rowData.getBeforeColumnsList()));
////        optionEvent.getRowData().getRowDatasList().forEach(rowData -> {
////            rowData.getAfterColumnsList().forEach(System.out::println);
////        });
//    }
//    private static void printColumn(List<CanalEntry.Column> columns) {
//        for (CanalEntry.Column column : columns) {
//            System.out.println(column.getName() + " : " + column.getValue() + "    update=" + column.getUpdated());
//        }
//    }
}
